package com.example.springboot.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.springboot.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author system
 * @since 2019-07-01
 */
@Data
public class CmsRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 角色名称
     */
    private String name;

    private String comment;

    /**
     * 逻辑删除字段(0:未删除 1:已删除)
     */
    private Integer invalid;

    @JsonFormat(pattern = DateUtil.DEFAULT_TIME, timezone = "GMT+8")
    private Date createTime;

}
